bitkeeper revision 1.1312 (42641150UzGGr-qvbIIWNR0atSZMEA)
authoriap10@freefall.cl.cam.ac.uk <iap10@freefall.cl.cam.ac.uk>
Mon, 18 Apr 2005 19:58:08 +0000 (19:58 +0000)
committeriap10@freefall.cl.cam.ac.uk <iap10@freefall.cl.cam.ac.uk>
Mon, 18 Apr 2005 19:58:08 +0000 (19:58 +0000)
Trivial ggc4 cleanup from Cihula, Joseph [joseph.cihula@intel.com]
Signed-off-by: ian@xensource.com
tools/xfrd/lzi_stream.c

index 20644efad0ff5b4d7cd912964e4ae1f6b2eab454..fb72f7703bf5ad2d8aae4791580c62a090a1e9a7 100644 (file)
@@ -239,10 +239,11 @@ LZIState * LZIState_new(IOStream *io, int flags){
 }
 
 int read_block(LZIState *s){
-    int err = 0, k = 0;
+    int err = 0;
+    uint32_t k = 0;
     //dprintf(">\n");
     if(s->eof) goto exit;
-    err = unmarshal_uint32(s->io, (unsigned int *)&k);
+    err = unmarshal_uint32(s->io, &k);
     if(err) goto exit;
     if(k > s->inbuf_size){
         err = -EINVAL;